package cn.yomigaeri.warn.client;


import cn.yomigaeri.common.entity.dto.SignalDTO;
import cn.yomigaeri.common.entity.vo.SignalVO;
import cn.yomigaeri.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient("signal-service")
public interface SignalClient {

    @PostMapping("/api/upload/signal")
    Result uploadSignal(@RequestBody SignalDTO signalDTO);

    @GetMapping("/api/upload/signal/{carId}")
    Result<SignalVO> getSignal(@PathVariable Long carId);
}
